#ifndef TIM_H
#define TIM_H

#include <Arduino.h>

#ifdef __cplusplus
extern "C" {
#endif

extern TIM_HandleTypeDef htim1;

void TIM1_PWM_Init(void);
void TIM1_Start(void);
void TIM1_SetCompare(uint32_t channel, uint32_t value);

#ifdef __cplusplus
}
#endif

#endif // TIM_H
